﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String con_nav = request.getParameter("con_nav");
	if ("con_nav_main".equals(con_nav)) {
%>
<div id="con_nav_main" class="box">
	<div class="con">
		<ul class="leftlist" id="userMenu">
		<sec:authorize access="hasRole('ROLE_DRIVER')">
			<li><a
				href="<s:url action="preFastRegCar.action" namespace="/car"></s:url>"
				class="hover"><strong>我的车辆</strong> </a> <br>
				<ul>
					<li id="registerCar"><a
						href="<s:url action="selectRegCarMethod.action" namespace="/car"></s:url>"
						class="hover">注册新的车辆</a></li>
					<li id="showMyRegistedCars"><a
						href="<s:url action="showMyRegistedCars.action" namespace="/car"></s:url>"
						class="hover">车辆管理</a></li>
					<li id="showMyRegistedDrivers"><a
						href="<s:url action="showDrivers.action" namespace="/car"></s:url>"
						class="hover">司机管理</a></li>
					<li id="normallyTransportRoutes"><a
						href="<s:url action="showMyNormallyTransportRoutes.action" namespace="/car"></s:url>"
						class="hover">常跑路线</a></li>
				</ul></li>
				<li class="more"><a href="" class="mt clearfix"><strong>车源管理</strong>
				</a>
				<ul>
					<li id="prePublishCar"><a
						href="${pageContext.request.contextPath}/car/prePublishCar.action"
						class="hover">发布车源</a></li>
					<li id="showMyPublishedCars"><a
						href="<s:url action="showMyPublishedCars.action" namespace="/car"></s:url>"
						class="hover">车源管理</a></li>
				</ul></li>
				<li><a href="#"><strong>我的关注</strong>
				</a>
					<ul>
						<li id="preSearchGoods"><a
							href="${pageContext.request.contextPath}/cargo/preSearchGoods.action"
							class="hover">搜索货源</a></li>
						<li id="showMyBiddedGoods"><a
							href="${pageContext.request.contextPath}/car/showMyBiddedGoods.action"
							class="hover">我的应标</a></li>
					</ul></li>
			</sec:authorize>
			
			<sec:authorize access="hasRole('ROLE_USER')">
			<li class="more"><a href="" class="mt clearfix"><strong>货源管理</strong>
			</a>
				<ul>
					<li id="addCargo"><a
						href="${pageContext.request.contextPath}/cargo/preAddCargo.action"
						class="hover">发布货源</a></li>
					<li id="cargoManagement"><a
						href="<s:url action="cargoList.action" namespace="/cargo"></s:url>"
						class="hover">货源列表</a></li>
				</ul></li>
			<li><a href="#"><strong>我的关注</strong>
			</a>
			</li>
			</sec:authorize>
			<li class="more"><a href="" class="mt clearfix"><strong>交易管理</strong>
			</a>
				<ul>
					<li id="orderManagement"><a href="<s:url action="queryAll.action" namespace="/order"></s:url>">订单管理</a>
					</li>
					
				</ul></li>
			
			<li class="more"><a href="" class="mt clearfix"><strong>交易维权</strong>
			</a>
				<ul>
					<li><a href="<s:url action="complaintList.action" namespace="/complaint"></s:url>">维权管理</a>
					</li>
					<!--  
						<li>
						<a href="<s:url action="preEditComplaint.action" namespace="/complaint"></s:url>">修改投诉</a>
						</li>
						
						<li><a href="<s:url action="preAddComplaint.action" namespace="/complaint"></s:url>">添加投诉</a>
						</li>
						
						<li><a href="<s:url action="preViewComplaint.action" namespace="/complaint"></s:url>">查看投诉</a>
						</li>
					-->
					<li><a href="http://u.zhubajie.com/report/myreport-nav-2.html">举报管理</a>
					</li>
				</ul></li>
		</ul>
	</div>
</div>
<%
	} else if ("con_nav_account".equals(con_nav)) {
%>
<div id="con_nav_account" class="box">
	<div class="con">
		<ul class="leftlist" id="userMenu">
			<li class="more"><a href="javascript:;" class="mt clearfix"><strong>基本资料</strong></a>
				<ul>
					<li id="userInfoManagement"><a
						href="<s:url action="preEditUserInfo" namespace="/userAdmin"></s:url>"
						class="hover">基本信息</a></li>
						
					<li id="userContactManagement"><a
						href="<s:url action="preEditUserContact" namespace="/userAdmin"></s:url>"
						class="hover">联系方式</a></li>
					<li id="userAvatarManagement"><a
						href="<s:url action="preEditAvatar" namespace="/userAdmin"></s:url>"
						class="hover">形象标示</a></li>
					<li id="addressManagement"><a
						href="<s:url action="preAddAddress" namespace="/address"></s:url>"
						class="hover">邮寄地址</a></li>
					<li id="companyManagement"><a
						href="<s:url action="preCompany" namespace="/company"></s:url>"
						class="hover">公司信息</a></li>
				</ul>
			</li>
			
			<li class="more"><a href="javascript:;" class="mt clearfix"><strong>账户认证</strong></a>
				<ul>
					<li id="nameAuth"><a
						href="<s:url action="preAuthName" namespace="/auth"></s:url>"
						class="hover">实名认证</a></li>
					<li id="phoneAuth"><a
						href="<s:url action="preAuthPhone" namespace="/auth"></s:url>"
						class="hover">手机认证</a></li>
					<li id="emailAuth"><a
						href="<s:url action="preAuthEmail" namespace="/auth"></s:url>"
						class="hover">邮箱认证</a></li>
					<li id="bankAuth"><a href="" class="hover">银行卡认证</a></li>
				</ul>
			</li>
				
			<li class="more"><a href="javascript:;" class="mt clearfix"><strong>账户安全</strong></a>
				<ul>
					<li id="modifyPassword"><a
						href="<s:url action="preChangePassword" namespace="/userAdmin"></s:url>">修改登录密码
					</a></li>
					<li id="createSecurePassword"><a href="<s:url action="preCreateSecurePassword" namespace="/userAdmin"></s:url>">修改安全密码</a></li>
				</ul>
			</li>
			
			<li class="more"><a href="javascript:;" class="mt clearfix"><strong>支付账户管理</strong></a>
				<ul>
					<li id="showBankCards"><a href="<s:url action="showBankCards" namespace="/pay"></s:url>">支付账户</a></li>
					<li><a href="">支付向导</a></li>
				</ul>
			</li>
		</ul>
	</div>
</div>
<%
	} else {
%>
<div id="con_nav_message" class="box">
	<div class="con">
		<ul class="leftlist" id="userMenu">
			<li class="more"><a href="javascript:;" class="mt clearfix"><strong>通知管理</strong>
			</a>
				<ul>
					<li><a href="<s:url action="showNotice.action" namespace="/notification"></s:url>" class="hover">通知</a></li>
					<li><a href="" class="hover">消息</a></li>
					<li><a href="" class="hover">通知设置</a></li>
					<li><a href="${pageContext.request.contextPath }/ann/getOpenAnnouncement.action">公告展示</a></li>
					
					<li><a
						href="<s:url action="preAdd.action" namespace="/ann"></s:url>"
						class="hover">添加公告</a></li>
				</ul></li>
		</ul>
	</div>
</div>
<%
	}
%>
<script>
$(function(){
	$("#userMenu").find("li").each(function(){
		$(this).removeClass("select");
	})
	
	$("#<%= request.getParameter("selectMenu")%>").addClass("select");
})
</script>